package com.yuan.config;

import com.yuan.pojo.Cat;
import com.yuan.pojo.MyImportSelector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
//@Import({DogConfig.class})
@Import(MyImportSelector.class)
public class CatConfig {


    @Bean("cat")
    public Cat getCat() {
        return new Cat();
    }
}
